package duckcase.duck;

import duckcase.duck.strategy.fly.SimpleFly;
import duckcase.duck.strategy.quack.SimpleQuack;

/**
 * description:
 *  最常见的鸭子
 * @author yuanmenglv on 2019/11/25
 */
public class SimpleDuck extends Duck {
    public SimpleDuck(){
        this.flyAble = new SimpleFly();
        this.quackAble = new SimpleQuack();
    }


    @Override
    public void display() {
        System.out.println("这是最常见的鸭子");
        this.fly();
        this.quack();
    }
}
